import request from 'umi-request';

export async function saveOrUpdateLeaveInfo(params) {
  return request('/api/member/api-member/leave/saveOrUpdateLeave', {
    method: 'POST',
    data: {
      ...params,
    },
  }).then((res) => {
    return res;
  });
}
